services.borgbackup.jobs.<name>.readWritePaths

By default, borg cannot write anywhere on the system but $HOME/.config/borg and $HOME/.cache/borg. If, for example, your preHook script needs to dump files somewhere, put those directories here.

Type
list of absolute path
Default
[ ]
Example
[
  "/var/backup/mysqldump"
]
Declared
<nixpkgs/nixos/modules/services/backup/borgbackup.nix>